package com.wnhz.trim.construction.service.job;

import com.wnhz.trim.construction.service.service.BuildService;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MyJob {
    @Autowired
    private BuildService bs;

    @XxlJob("zhuangxJob")
    public void zhuangxJob(){
        bs.findAll();
        log.debug("这是今天的装修进度详情{}",bs.findAll());

        XxlJobHelper.handleSuccess();


    }


}
